﻿using System.Drawing;
using System.Windows.Forms;
using TouchSmart.Widgets;
using ListBox=TouchSmart.Widgets.ListBox;

namespace TouchSmart
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            var host = new Host {Dock = DockStyle.Fill, Location = new Point(0, 0)};
            host.Initialize();

            var box = new Box(new Point(20, 20), new Size(110, 60), Color.Red);
            var dynamicBox = new DynamicBox(new Point(60, 10), new Size(40, 40), Color.Blue);
            var listBox = new ListBox(host.Location, host.Size);
            listBox.AddItem(new ListItem("Mleko"));
            listBox.AddItem(new ListItem("Jabłka"));
            listBox.AddItem(new ListItem("Masło"));
            listBox.AddItem(new ListItem("Śmietana"));

            //host.AddWidget(box);
            //host.AddWidget(dynamicBox);
            //host.AddWidget(bar);
            host.AddWidget(listBox);

            this.Controls.Add(host);
        }
    }
}